﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ApprovalFlow.Interface;
using ApprovalFlow.Models;

namespace ApprovalFlow.Services
{
    public class ExecutionPointerFactory : IExecutionPointerFactory
    {
        public IEnumerable<ExecutionPointer> BuildGenesisPointer(WorkflowDefinition def, WorkflowInstance instance)
        {
            return def.Root.Builder(instance, null);
        }
    }
}
